package com.example.util;
import com.example.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import java.util.Objects;

/**
 * 字典工具类
 *
 * @author wsl
 */
@Component
public class DictUtils {

    @Autowired
    private IDictService dictService;

    @Autowired
    private RedisTemplate redisTemplate;

    public Object getDictTypeMap(){
        return redisTemplate.opsForValue().get("sys_dict");
    }

    public Object getDictValueMap(){
        return redisTemplate.opsForValue().get("sys_dict_value");
    }
}
